package entities;

import java.io.Serializable;

import api.entitites.IGarage;
import api.entitites.IOrder;



public class Garage implements IGarage,Serializable{
	
	
	private Integer number;
	private boolean empty = true;
	private IOrder order;
	private Integer id;
	private IdManager idManager=IdManager.getInstance();

	public Garage(){
		id=idManager.getGarageId();
	}
	
	public void setNumberGarage(Integer number){
		this.number=number;
	}
	
	public void setId(Integer id){
		this.id=id;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void markGarageNotEmpty(IOrder order) {
		this.order = order;
		empty = false;

	}

	public void markGarageEmpty() {
		empty = true;
	}

	
	public int getNumberGarage() {
		return number;
	}

	public boolean getEmptyGarage() {
		return empty;
	}
	
	public IOrder getOrder() {
		return order;
	}
	
	

}
